const express = require("express");
const app = express();
const router = express.Router();
const {mysql , executeQuery} = require("../../mysql");


// 做好查询学生和家长
router.post("/api", async (req, res) => {
  const result = await executeQuery(req.body.sql)//执行sql语句
  res.json({
    res: result,
  });
});

module.exports = router;
